<template>
    <!--ASN明细-->
    <div id="AsnDetails">
        <v-details :detailData="data.detailData" :inputConfig="inputConfig" :rules="rules" ref="input"></v-details>
    </div>
</template>

<script>

    import details from 'commons/Detail'
    import baseMixin from "@/mixins/BaseMixin";

    export default {
        name: "",
        mixins: [baseMixin],
        props: {
            data: {
                type: Object
            }
        },
        data() {
            return {}
        },
        computed: {
            rules() {
                return {
                    bill_group: [
                        {required: true, trigger: 'blur'},
                    ]
                }
            },
            inputConfig() {
                return [
                    [
                        {
                            type: "input",
                            label: this.$t('config.sku'),
                            props: "item",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('config.packaging'),
                            props: "pkg",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('bill.lotCode'),
                            props: "lot_code",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "UC1",
                            props: "uc1",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "UC2",
                            props: "uc2",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "UC3",
                            props: "uc3",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('in.lpn'),
                            props: "lpn_code",
                            disabled: true
                        },
                        {
                            type: "select",
                            label: this.$t('config.loc'),
                            props: "loc_code",
                            options: this.getOptions(""),
                            disabled: true
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: "SKU数量",
                            props: "qty_bal",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "装载数量",
                            props: "load_bal",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('config.gross'),
                            props: "grs_bal",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('config.suttle'),
                            props: "net_bal",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('config.volume'),
                            props: "cube_bal",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('in.temperature'),
                            props: "temperature",
                            disabled: true
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('config.skuUom'),
                            props: "qty_uom",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "装载计量单位",
                            props: "load_uom",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('out.weight'),
                            props: "wgt_uom",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: this.$t('config.volumeUom'),
                            props: "cube_uom",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "温度计量单位",
                            props: "temperature_uom",
                            disabled: true
                        },
                    ],
                    [
                        {
                            type: "input",
                            label: this.$t('in.stuffPrice'),
                            props: "unit_price",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "附加价格",
                            props: "extend_price",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "折扣百分比",
                            props: "discount_percent",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "匹配类型",
                            props: "match_type",
                            disabled: true
                        },
                        {
                            type: "input",
                            label: "伙伴代码",
                            props: "partner_code",
                            disabled: true
                        },
                    ]
                ]
            }
        },
        methods: {},
        mounted() {

        },
        watch: {},
        components: {
            'v-details': details
        }
    }
</script>

<style scoped>

</style>
